import { FileUploadModule } from 'ng2-file-upload';
import { AppPaginationModule } from './../../../widgets/pagination/pagination.module';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NotRunningComponent } from "./not-running/not-running.component";
import { RunningComponent } from "./running/running.component";
import { StopComponent } from "./stop/stop.component";
import { AnnuityListRoutingModule } from "./annuity-list-routing.module";
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../../assets/angularx-flatpickr';
import { AreaDataCnModule } from "../../../widgets/area-data-cn/area-data-cn.module";
export function flatpickrFactory() {
    return flatpickr;
}

@NgModule({
    imports: [
        CommonModule,
        AnnuityListRoutingModule,
        FormsModule,
        AppPaginationModule,
        FileUploadModule,
        AreaDataCnModule,
        FlatpickrModule.forRoot({
            provide: FLATPICKR,
            useFactory: flatpickrFactory
        })
    ],
    declarations: [
        NotRunningComponent,
        RunningComponent,
        StopComponent
    ]
})
export class AnnuityListModule { }
